#ifndef __CC_MUTEX__
#define __CC_MUTEX__
#include "cc_portable.h"

cc_mutex_t cc_mutex_create();
void cc_mutex_init(cc_mutex_t mut);
int cc_mutex_lock_time(cc_mutex_t mut, int ms);
int cc_mutex_lock(cc_mutex_t mut);
int cc_mutex_trylock(cc_mutex_t mut);
int cc_mutex_unlock(cc_mutex_t mut);
void cc_mutex_deinit(cc_mutex_t mut);
void cc_mutex_destory(cc_mutex_t mut);

#endif